package com.zhuoyue.biz.core.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuoyue.biz.core.api.domain.RelationDevice;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author wjming
 */
public interface RelationDeviceMapper extends BaseMapper<RelationDevice> {

    /**
     * 查询设备存储的Code编码
     *
     * @param startDeviceId
     * @return
     */
    @Select("select start_child_od_code from tbl_relation_device where start_device_id=#{startDeviceId} order by start_child_od_code Asc")
    List<Integer> selectCode(@Param("startDeviceId") String startDeviceId);


}